package com.bwie.auth.exceptions;

import lombok.Data;

/**
 * 业务异常
 */
@Data
public class BizException extends RuntimeException {

    private int code;

    private String message;

    public BizException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public BizException(String message) {
        this.message = message;
    }
}
